import prodConfig from './prod'
import devConfig from './dev'

export default () => {
    return {
        routePrefix : 'api',
        loginFailMacCount : 5,
        cacheKey : {
            dictCategoryItem : 'dct:cate:item',
            nearDevice : 'near:dev',
            device : 'dev:',
            port : 'port:',
            strategy : 'stry:',
            chargeOrderStatus : 'cos:',
            addChargeOrderStatus : 'acos:',
            stopChargeStatus : 'scs:',
            chargingOrder : 'cing:',
            chargeOrderMessage : 'chargeOrderMessage',
            openidToUserId : 'openid:userId',
            user : 'u:',

            icardChargeOrderMessage : 'icardChargeOrderMessage',
        },
        ...(process.env.NODE_ENV === 'prod' ? prodConfig : devConfig)
    }
}